package com.zy;

/**
 * Hello world!
 *
 */
public class App
{
    public static void main( String[] args )
    {
       //测试一下lombok的功能
        Person p=new Person();
        p.setId( 1 );
        p.setName( "张三" );
        p.setSex( "男" );
        p.setAge( 18 );

        System.out.println(  p.getId()+" "+p.getName()+" "+p.getSex()+" "+p.getAge() );

        System.out.println( p.toString() );

        Person p2=new Person(1, "张三","男",18);

        System.out.println( p.equals( p2 ) );

        //利用Lombok的Builder模式来创建对象
        Person p3=Person.builder().id( 100 ).name( "张三" ).sex( "男" ).age( 18 ).build();
        System.out.println( p3.toString() );


    }
}
